<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新增联系方式</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link href="/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/css/materialdesignicons.min.css" rel="stylesheet" />
    <link href="/css/animate.min.css" rel="stylesheet" />
    <link href="/css/style.min.css" rel="stylesheet" />
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css" />
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" />
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css" />
</head>
<body>
<div class="container-fluid">
    <div class="card">
        <div class="card-header">
            <h1 id="title">新增联系方式</h1>
        </div>
        <div class="card-body">
            <form class="well form-well" id="addOpportunityModel">
                <span id="contactId" class="hidden" th:text="${addContactInformationQO.contactId}"></span>
                <span id="customerId" class="hidden" th:text="${addContactInformationQO.customerId}"></span>
                <span id="contactInformationBs" class="hidden" th:text="${addContactInformationQO.contactInformationBs}"></span>

                <div class="row">
                    <div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="contactInformation">联系方式</label>
                        <div class="form-content">
                            <div class="input-group">
                                <input id="contactInformation" type="text" class="form-control"  oninput="value=value.replace(/[^\d]/g,'')">
                                <span class="input-group-addon">分机号</span>
                                <div class="input-group-btn">
                                    <input type="text" id="extNumber" class="form-control" oninput="value=value.replace(/[^\d]/g,'')" style="width: 80px;">
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="contactInformationType">联系方式类型</label>
                        <div class="form-content">
                            <select class="form-control" id="contactInformationType" type="text" title="请选择">
                                <option value="0">主联系方式</option>
                                <option value="1">从联系方式</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12">
                        <label class="control-label label-required" for="contactType">联系类型</label>
                        <div class="form-content">
                            <select class="form-control" id="contactType" type="text" title="请选择">
                                <option value="家庭电话">家庭电话</option>
                                <option value="爱人电话">爱人电话</option>
                                <option value="单位电话">单位电话</option>
                                <option value="其他">其他</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 col-sm-6 col-xs-12 qt_a" style="display: none;">
                        <label class="control-label label-required" for="contactTypeQt">其他联系类型</label>
                        <div class="form-content">
                            <input type="text" id="contactTypeQt" name="contactTypeQt" placeholder="请输入其他联系类型" class="form-control">
                        </div>
                    </div>
                </div>
            </form>
            <div class="form-actions">
                <button class="btn btn-primary btn-label" type="submit" onclick="addContactInformation()"><label><i class="mdi mdi-check"></i></label>确定</button>
                <button class="btn btn-default" type="button" onclick="cancelAddContactInformation()">取消</button>
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<!--公共js-->
<script src="/js/crm/common/common.js"></script>
<script src="/js/crm/common/input-tag.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script src="/js/crm/contactManager/addContactInformation.js"></script>
</html>
